<div class="container-fluid">
    <!-- BEGIN PAGE HEADER-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN PAGE TITLE & BREADCRUMB-->
            <h3 class="page-title">
                Hệ thống quản trị website PetitPoint
            </h3>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a href="index.html">Trang chủ</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="#">Bảng điều khiển</a></li>

            </ul>
            <!-- END PAGE TITLE & BREADCRUMB-->
        </div>
    </div>
    <!-- END PAGE HEADER-->
    <div id="dashboard">
        <!-- BEGIN DASHBOARD STATS -->
        <div class="row-fluid">
            <div class="span3 responsive" data-tablet="span6" data-desktop="span3">
                <div class="dashboard-stat blue">
                    <div class="visual">
                        <i class="icon-bookmark-empty"></i>
                    </div>
                    <div class="details">
                        <div class="number">
                            <?php
                            $totalProduct = count(Products::model()->findAll());
                            echo $totalProduct;
                            ?>
                        </div>
                        <div class="desc">
                            Tổng số sản phẩm
                        </div>
                    </div>
                    <a class="more" href="/admin/products/admin">
                        Xem nhiều hơn <i class="m-icon-swapright m-icon-white"></i>
                    </a>
                </div>
            </div>
            <div class="span3 responsive" data-tablet="span6" data-desktop="span3">
                <div class="dashboard-stat green">
                    <div class="visual">
                        <i class="icon-shopping-cart"></i>
                    </div>
                    <div class="details">
                        <div class="number">
                            <?php
                            $totalOrder = count(Order::model()->with(array('status'=>1))->findAll());
                            echo $totalOrder;
                            ?>
                        </div>
                        <div class="desc">Đơn hàng mới</div>
                    </div>
                    <a class="more" href="/admin/order/admin">
                        Xem nhiều hơn <i class="m-icon-swapright m-icon-white"></i>
                    </a>
                </div>
            </div>
            <div class="span3 responsive" data-tablet="span6  fix-offset" data-desktop="span3">
                <div class="dashboard-stat purple">
                    <div class="visual">
                        <i class="icon-group"></i>
                    </div>
                    <div class="details">
                        <div class="number">
                            <?php
                            $criteria = new CDbCriteria();
                            $criteria->condition = "status is null";
                            echo Users::model()->count($criteria);
                            ?>
                        </div>
                        <div class="desc">Khách hàng mới</div>
                    </div>
                    <a class="more" href="/admin/customer/admin">
                        Xem nhiều hơn <i class="m-icon-swapright m-icon-white"></i>
                    </a>
                </div>
            </div>
            <div class="span3 responsive" data-tablet="span6  fix-offset" data-desktop="span3">
                <div class="dashboard-stat yellow">
                    <div class="visual">
                        <i class="icon-comments"></i>
                    </div>
                    <div class="details">
                        <div class="number">
                            <?php
                            $totalContact = count(Contact::model()->findAll());
                            echo $totalContact;
                            ?>
                        </div>
                        <div class="desc">Những liên hệ mới</div>
                    </div>
                    <a class="more" href="/admin/contact/admin">
                        Xem nhiều hơn <i class="m-icon-swapright m-icon-white"></i>
                    </a>
                </div>
            </div>
        </div>
        <!-- END DASHBOARD STATS -->
        <div class="row-fluid">
            <!--<div id="site_statistics" class="chart"></div>-->
            <!--<div id="site_activities" style="height:100px;"></div>-->
            <!--<div id="load_statistics" style="height:108px;"></div>-->
        </div>
    </div>
</div>